﻿using JNPF.Basics.Models;
using JNPF.Utils;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace JNPF.Basics.Logic
{
    /// <summary>
    /// 大屏管理
    /// 版 本：V3.0.0
    /// 版 权：引迈信息技术有限公司（https://www.jnpfsoft.com）
    /// 作 者：JNPF开发平台组
    /// 日 期：2017.11.28 
    /// </summary>
    internal interface DataIService
    {
        /// <summary>
        /// 列表(分页)
        /// </summary>
        /// <param name="input">参数</param>
        /// <returns></returns>
        Task<PageResult<DataEntity>> GetList(DataListQuery input);
        /// <summary>
        /// 列表
        /// </summary>
        /// <returns></returns>
        Task<List<DataEntity>> GetList();
        /// <summary>
        /// 信息
        /// </summary>
        /// <param name="id">id</param>
        /// <returns></returns>
        Task<DataEntity> GetInfo(string id);
        /// <summary>
        /// 新增
        /// </summary>
        ///  <param name="entity">实体</param>
        /// <returns></returns>
        Task<int> Create(DataEntity entity);
        /// <summary>
        /// 修改
        /// </summary>
        ///  <param name="entity">实体</param>
        /// <returns></returns>
        Task<int> Update(DataEntity entity);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="entity">实体</param>
        /// <returns></returns>
        Task<int> Delete(DataEntity entity);
    }
}
